<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息</title>

</head>
<body>
<section id="content">
    <div id="topbar" class="affix">
        <ol class="breadcrumb">
            <li class="active">
                <a href="#"><span class="glyphicon glyphicon-home"></span></a>
            </li>
        </ol>
    </div>
    <div class="container">
        <div class="col-md-11">
            <div id="docs-content">
                <h2 class="page-header margin-top-none">个人信息</h2>
                <table class="table">
                    <tr>
                        <td colspan="2" th:text="'您好,'+${session.userDetails.Username}"></td>
                    </tr>
                    <tr>
                        <td width="120">最后登录时间:</td>
                        <!-- 使用Thymeleaf进行时间格式化 -->
                        <td th:text="${#dates.format(#dates.createNow(), 'yyyy-MM-dd HH:mm:ss')}"></td>
                    </tr>
                    <tr>
                        <td>权限:</td>
                        <td  th:text="${session.userDetails.Authorities}"></td>
                        <!-- 获取客户端的IP地址 -->
                      <!--  <td th:text="${#httpServletRequest.remoteAddr}"></td>-->
                    </tr>
                </table>

                <h2 class="page-header margin-top-none">系统信息</h2>
                <table class="table">
                    <tr>
                        <td>IDEA版本:</td>
                        <td>2024.1</td>
                    </tr>
                    <tr>
                        <td>MySQL版本:</td>
                        <td>8.0.28</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</section>
</body>
</html>
